package org.ranki.moerae.atropos;

import org.ranki.moerae.clotho.context.Context;
import org.ranki.moerae.clotho.node.AbstractNode;

import java.util.Set;

public class NodeUnload implements Unload{
    private volatile static NodeUnload nodeUnload;
    private NodeUnload (){}
    public static NodeUnload getNodeUnload() {
        if (nodeUnload == null) {
            synchronized (NodeUnload.class) {
                if (nodeUnload == null) {
                    nodeUnload = new NodeUnload();
                }
            }
        }
        return nodeUnload;
    }
    @Override
    public void unload(AbstractNode start,AbstractNode target, Context context) {
        context.getTabu().add(target);
    }
}
